extends ./main_temp

block panelBody
          <div class="panel-body text-center" id="table_div">
            <form class="form-horizontal" style="margin-top:3%" method="post" action="/save.do">
              <div class="form-group">
                    <div class="col-sm-8">
                       input.form-control(name='_id' value=`${editObj ? editObj._id : "" }` type="hidden")
                    </div>
              </div>
              <div class="form-group">
                <label  class="col-sm-4 control-label" >姓名</label>
                <div class="col-sm-8">
                   input.form-control(type='text' name='name' value=`${editObj ? editObj.name : "" }` placeholder='姓名')
                </div>
              </div>
                <div class="form-group">
                  <label  class="col-sm-4 control-label" >性别</label>
                  <div class="col-sm-8">
                     input.form-control(type='text' name='gender' value=`${editObj ? editObj.gender : "" }` placeholder='性别')
                  </div>
                </div>
                  <div class="form-group">
                    <label  class="col-sm-4 control-label" >电话</label>
                     <div class="col-sm-8">
                        input.form-control(type='text' name='phone' value=`${editObj ? editObj.phone : "" }` placeholder='电话')
                     </div>
                    </div>
                  <div class="form-group">
                    <label  class="col-sm-4 control-label" >宿舍楼</label>
                    <div class="col-sm-8">
                      input.form-control(type='text' name='dorm' value=`${editObj ? editObj.dorm : "" }` placeholder='宿舍楼')
                    </div>
                  </div>
                  <div class="form-group">
                    <label  class="col-sm-4 control-label" >寝室</label>
                    <div class="col-sm-8">
                         input.form-control(type='text' name='dormroom' value=`${editObj ? editObj.dormroom : "" }` placeholder='寝室')
                    </div>
                  </div>
              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <button type="submit" class="btn btn-sussces">保存</button>
                </div>
              </div>
            </form>
          </div>
block append scripts
    script(src="/js/common.js")
    script(src="/js/stu/stuM.js")